//
//  ZDBIntegralTableViewCell.m
//  ZDB
//
//  Created by Kk on 2020/3/19.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ZDBIntegralTableViewCell.h"

@implementation ZDBIntegralTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
     self.selectionStyle = UITableViewCellAccessoryNone;
    [self setSeparatorInset:UIEdgeInsetsMake(0, 0, 0, 0)];
    self.backgroundColor = WHITECOLOR;
}
-(void)setIntegral:(Integral *)integral
{
    _IintegralLab.text =  integral.remarks;
    _timeLab.text = integral.createTime;
    if (integral.type.integerValue==1) {
        _totalLab.text = kFormat(@"+%@", integral.integral);
        _totalLab.textColor = MAINTITLECOLOR;
    }else
    {
        _totalLab.text = kFormat(@"-%@", integral.integral);
       
         _totalLab.textColor = MAINCOLOR;
    }
   
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
